package com.kuang.sync.singledown;

import com.alibaba.fastjson.JSONObject;
import com.kuang.pojo.AstControllerHeart;
import com.kuang.pojo.AstControllerPoweron;
import com.kuang.pojo.AstLocalCloseWell;
import com.kuang.pojo.AstLocalOpenWell;
import org.eclipse.paho.client.mqttv3.MqttException;

public interface SingleDownService {

    //设备的注册信息
    String postControllerRegisterSrv(String id, JSONObject preant) throws MqttException;

    //服务器远程开井返会的讯息
    String postRemoteOpenWellSrv(String id, JSONObject preant);

    //服务器远程关井返会的讯息
    String postRemoteCloseWellSrv(String id, JSONObject preant);

    //2.10 获取设备端信息 cmd=controller_info
    String postControllerInfoSrv(String id, JSONObject preant);

    //控制器-设备端开机
    String postControllerPoweron(AstControllerPoweron astControllerPoweron);

    //控制器-设备端心跳--删除
    String postControllerHeart(AstControllerHeart astControllerHeart);

    //控制器-设备本地、远程开井实时
    String postRealTimeRecords(String type,Object dataModel);

    //控制器-设备本地开井
    String postLocalOpen(AstLocalOpenWell astLocalOpenWell);

    //控制器-设备本地关井
    String postLocalClose(AstLocalCloseWell astLocalCloseWell);

    //16 控制器-设备读取用户卡状态
    String postIcCardStatus(String id, JSONObject preant);

    //2.17服务器远程控制器阀门
    String postGetValveControlResp(String id, JSONObject preant);

    //2.18设备上报阀门状态
    String postUpdateContolValveStatus(String id, JSONObject preant);
}
